#include "SelectionStmt.h"
#include "../Expressions/Expression.h"
#include "Statement.h"

SelectionStmt::~SelectionStmt(void)
{
	delete m_pExpr;
	delete m_pStmt1;
	if(m_pStmt2)
		delete m_pStmt2;
}

void SelectionStmt::codeGen()
{
	COUT
	m_pExpr->codeGen();
	m_pStmt1->codeGen();
	if(m_pStmt2)
		m_pStmt2->codeGen();
}